﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace ResetZMV9pwd
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        /// <summary>
        /// 查看当前密码
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnSeeCurPwd_Click(object sender, EventArgs e)
        {

        }

        /// <summary>
        /// 修改密码
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnEdit_Click(object sender, EventArgs e)
        {

        }

        private void btnTestConn_Click(object sender, EventArgs e)
        {
            string connStr = MakeConnStr();
        }

        private string MakeConnStr()
        {
            string strTmp = string.Empty;
            strTmp = MakeDbConnStr.MakeSqlServerConnStr(txtServer.Text, int.Parse(txtPort.Text), txtIns.Text,
                txtUser.Text, txtPwd.Text, txtDBName.Text);
            return strTmp;
        }
    }
}
